# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>

pkgbase=libreoffice-still-i18n

pkgver=7.1.6
pkgrel=1
_rcver=${pkgver}.2
#_oodlver=${pkgver}.0.beta1
_oodlver=${pkgver}

arch=('any')
url="https://www.documentfoundation.org"
license=('LGPL')

#https://download.documentfoundation.org/mirrors/all.html

_url="https://download.documentfoundation.org/libreoffice/stable"
#_url="https://download.documentfoundation.org/libreoffice/testing"
#_url="https://dev-builds.libreoffice.org/pre-releases"


#_url+="/${pkgver}-rc2/rpm/x86_64"
#_url+="/${pkgver}/rpm/x86_64"
_url+="/${pkgver}/rpm/x86_64"
#_url+="/rpm/x86_64"

# https://wiki.documentfoundation.org/Language_Teams
# https://wiki.documentfoundation.org/Language/Support

_languages=(
  'af            "Afrikaans"               0'
  'am            "Amharic"                 1'
  'ar            "Arabic"                  1'
  'as            "Assamese (India)"        0'
  'ast           "Asturianu"               1'
  'be            "Belarusian"              0'
  'bg            "Bulgarian"               1'
  'bn-IN         "Bengali (India)"         1'
  'bn            "Bengali"                 1'
  'bo            "Tibetan"                 1'
  'br            "Breton"                  0'
  'brx           "Bodo"                    0'
  'bs            "Bosnian"                 1'
  'ca-valencia   "Catalan (Valencia)"      1'
  'ca            "Catalan"                 1'
  'ckb           "Central Kurdish / Soranî‎ / سۆرانی " 0'
  'cs            "Czech"                   1'
  'cy            "Welsh"                   0'
  'da            "Danish"                  1'
  'de            "German"                  1'
  'dgo           "Dogri"                   0'
  'dsb           "Sorbian: Lower Sorbian / Dolnoserbski" 0'
  'dz            "Dzongkha"                1'
  'el            "Greek"                   1'
  'en-GB         "English (GB)"            1'
  'en-ZA         "English (ZA)"            1'
  'eo            "Esperanto"               1'
  'es            "Spanish"                 1'
  'et            "Estonian"                1'
  'eu            "Basque"                  1'
  'fa            "Persian"                 0'
  'fi            "Finnish"                 1'
  'fr            "French"                  1'
  'fur           "Friulian / Friulan"      0'
  'fy            "Frisian / West Frisian / Frysk / Fries" 0'
  'ga            "Irish"                   0'
  'gd            "Gaelic (Scottish)"       0'
  'gl            "Galician"                1'
  'gu            "Gujarati"                1'
  'gug           "Guarani"                 0'
  'he            "Hebrew"                  1'
  'hi            "Hindi"                   1'
  'hr            "Croatian"                1'
  'hsb           "Sorbian: Upper Sorbian / Hornjoserbšćina" 0'
  'hu            "Hungarian"               1'
  'id            "Indonesian"              1'
  'is            "Icelandic"               1'
  'it            "Italian"                 1'
  'ja            "Japanese"                1'
  'ka            "Georgian"                1'
  'kab           "Kabyle / Kabylian / Taqbaylit / Taqbaylit / Tazwawt" 0'
  'kk            "Kazakh"                  0'
  'km            "Khmer (Cambodia)"        1'
  'kmr-Latn      "Kurdish"                 0'
  'kn            "Kannada"                 0'
  'ko            "Korean"                  1'
  'kok           "Konkani"                 0'
  'ks            "Kashmiri"                0'
  'lb            "Luxembourgish"           0'
  'lo            "Lao"                     1'
  'lt            "Lithuanian"              1'
  'lv            "Latvian"                 1'
  'mai           "Maithili"                0'
  'mk            "Macedonian"              1'
  'ml            "Malayalam"               0'
  'mn            "Mongolian"               0'
  'mni           "Manipuri"                0'
  'mr            "Marathi"                 0'
  'my            "Burmese"                 0'
  'nb            "Norwegian Bokmal"        1'
  'ne            "Nepali"                  1'
  'nl            "Dutch"                   1'
  'nn            "Norwegian Nynorsk"       1'
  'nr            "Ndebele (South)"         0'
  'nso           "Northern Sotho"          0'
  'oc            "Occitan"                 0'
  'om            "Oromo"                   1'
  'or            "Oriya"                   0'
  'pa-IN         "Punjabi (India)"         0'
  'pl            "Polish"                  1'
  'pt-BR         "Portuguese (Brasil)"     1'
  'pt            "Portuguese"              1'
  'ro            "Romanian"                1'
  'ru            "Russian"                 1'
  'rw            "Kinyarwanda"             0'
  'sa-IN         "Sanskrit (India)"        0'
  'sat           "Santali"                 0'
  'sd            "Sindhi"                  0'
  'si            "Singhalese"              1'
  'sid           "Sidama"                  1'
  'sk            "Slovak"                  1'
  'sl            "Slovenian"               1'
  'sq            "Albanien"                1'
  'sr-Latn       "Serbian (Latin)"         0'
  'sr            "Serbian"                 0'
  'ss            "Swati"                   0'
  'st            "Southern Sotho"          0'
  'sv            "Swedish"                 1'
  'sw-TZ         "Swahili (Tanzania)"      0'
  'szl           "Silesian"                0'
  'ta            "Tamil"                   1'
  'te            "Telugu"                  0'
  'tg            "Tajik"                   1'
  'th            "Thai"                    0'
  'tn            "Tswana"                  0'
  'tr            "Turkish"                 1'
  'ts            "Tsonga"                  0'
  'tt            "Tatar"                   0'
  'ug            "Uighur"                  1'
  'uk            "Ukrainian"               1'
  'uz            "Uzbek"                   0'
  've            "Venda"                   0'
  'vec           "Venetian"                0'
  'vi            "Vietnamese"              1'
  'xh            "Xhosa"                   0'
  'zh-CN         "Chinese (simplified)"    1'
  'zh-TW         "Chinese (traditional)"   1'
  'zu            "Zulu"                    0'
)
validpgpkeys=('C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3') # "LibreOffice Build Team (CODE SIGNING KEY) <build@documentfoundation.org>"
sha256sums=('dccf481e9939320769153246f9562a475fc9c8524827c9657644580535c4abd0'
            'SKIP'
            '6415afb8acaae100bb80268dd27a2d41acfd11dc9b1b1927afab42c2ace708f2'
            'SKIP'
            '4d1750ffab1a8121924399df69aaab9e650e7f6092685945202d918fddbdf646'
            'SKIP'
            'f388c885729c605b6441e0f1453a8a68bccc3b89e211843d7d99d4cd68956084'
            'SKIP'
            '016680c28e1a3ba39a73f34faa46155916f94827180de82da7c1c94211224171'
            'SKIP'
            'bde87400656b785cf5ef3eea93b3adfac87b6896c11733600f8ad3e785aaf0db'
            'SKIP'
            'c693543888298f8bf4859b9a48f6b5214b67a320c8ccda5d0f928c6905c16334'
            'SKIP'
            '68b2302704144c15e5be4e0b3e1a59b74399513dcb4c9eb47c2b3a6de2617228'
            'SKIP'
            'dc0ede688ed5e21402e252a30c78fdf6cfbbaa3ce9180a9c77ea2bebaad9a91a'
            'SKIP'
            '83e77e5622b9209604d4216030bba7890033f3c2bca1896e60cd0a360e8cd733'
            'SKIP'
            '823c145a755190833e657a55793ab0e8fafacbe4734ab82fd9d1789ed7b91788'
            'SKIP'
            '1f20fca44480901456f6f60d5aae7f248b5d204beae8c94bca8a15d251199fd9'
            'SKIP'
            '732d3208a10a6daccae5b70718405b14b707ddf2775a3dfc15758b8ed78bd020'
            'SKIP'
            '0efb76ebbb7086d51e9e293731a598a6c96829cca9888917d22ea79ab73da38e'
            'SKIP'
            '58b3b612cd83c952d4e0cea0eabdff467765b70bb4372b383a59e147dd459bb1'
            'SKIP'
            '0a025e17dec476cfcf84720b8783e30e052a5a0ae214d7880adee82f9ddf4f61'
            'SKIP'
            '2849f0bd2ebe9d75675868928fefc882c3639a0cfced0757b6da96736dfc8ec7'
            'SKIP'
            '524f2b722ab76ece82e00e5279bd78de571de227ff759a0212e3423d4ccfdc56'
            'SKIP'
            'c38e6e0128afa3aa844a71d929cfb875fd2e7817ce9b94751e34e4123873a340'
            'SKIP'
            '9594df223e527afc6ba624b01775dc053dbe10b29055673a7ddffe94f94487f4'
            'SKIP'
            '0ea5b1c0fdd1a2822c003e6c14bb34e13f17b60ee6dac7395dd89a60716c709d'
            'SKIP'
            '797a46953bde52b1c0795985d22543d5fde2435cac17e4590e20b45838f1cd39'
            'SKIP'
            'a52db0eb65b2068a68f8575b96f412ce10fd59b9291a9164f588ec62beb9edd1'
            'SKIP'
            'c7f5f2c020e014c490c7d1e17ba9886eeff30a6c62628fbe4135097e91764918'
            'SKIP'
            'a9710ccef7a1fdcd996156aeaa17fd7310438a9a717b138f4b9bff8154bdcad0'
            'SKIP'
            '8519d3cdadf0e302701c006a6305de03313e477be51687ba83c439179f8b1ac2'
            'SKIP'
            'e2d9e238b6448a73685a4e769a6e5ec91cef284cd1bdee33e64d56da12859d3d'
            'SKIP'
            '189b83ee57ff886c9dc74eb2685d497a59dce2fa9fe186b2c7a91a96caecc565'
            'SKIP'
            'e467e56cebd94494c9b41188d1d71492126ffafcfaf64d8185aaeeed8bcd83ba'
            'SKIP'
            '10d4dd138b85053c1d4ccb695ea60d533946f39f18c5714f503367f88a0b31b0'
            'SKIP'
            '5c406d1702efb1f4ab8f9bfef37bb5839c205878b375faedb9088f6f30d575bc'
            'SKIP'
            'f8367932c5dd840a53eb6aaaee3759f49e47ba5c0a6ba0d8efe8a945dd96bb25'
            'SKIP'
            '4eb6f082520006222a6e2fdd41c1c6f1a0db3edcac798869c5a0fa67ede271fc'
            'SKIP'
            '13652e43e0327cbae1865a4e136d2bdc7f31a87082d9e93db401281fab283589'
            'SKIP'
            'fb1f1ca6b5a21d58f6a497a23c338ad3d6035743ec84cd18cf1434d90b44af02'
            'SKIP'
            '9f9d1b5264da6e5b709f06248ff394da3c2a6d9e28af6408e8adb270c63be85c'
            'SKIP'
            'faf9d2aa197e5ed0898cd184ca3cad72f718297089549a68b678476bb89c6f40'
            'SKIP'
            'd1483321c0a524af6f6dda15b5f6e04a2a2e4d58c4e0596a935d1e7940f784ac'
            'SKIP'
            '0490487d2ff3e64b320200a98ff6b221781daaab6e937b353ce835f730f60c8e'
            'SKIP'
            '4921ab14845e0bd06db8c366f1b873441640b03f3654057fab096eea5f40266e'
            'SKIP'
            '8b818d5197ead3b6b4c135e554270fb08fd3c08d3efd2a65e46f9e434115f1c0'
            'SKIP'
            '4efc367dd8a14ef51ea50621c5b5fc57ba524ab2873a67cb9aa2a60790e22bcd'
            'SKIP'
            '7be4f0c55d0a3652f727991d3184dfa3297a29712a6e0ac02d4e2e29c1b9f46b'
            'SKIP'
            '0d397b7bc8a535101a47d9c339c820948d860fbfc68f573bc0ab3ffdbe2f2814'
            'SKIP'
            'b92215f6cec66fc865b54a8dbc1f268302151ae6cc46ecbb9afe7ff9744ae36d'
            'SKIP'
            '0b04550872599a53cbefd7e126ca25d5f991af413e015498daccc9082088df6e'
            'SKIP'
            '2d19d00de91f0129cd542c40e2c5b18de28337034bb1f72495dd22bc12db834d'
            'SKIP'
            '0cb9b8bf0e4b8cd9d9f1def2415c99ffb5053f9669194085394495f66a5a7780'
            'SKIP'
            '5a9ff8ea60e7caa7f88dbe23fae5738e67005be212b21f0c3fb2de4ffc4d0007'
            'SKIP'
            '67f8c46c7b522672ad6026a01a37d351615bae022b6ef954e4fe3e4c4f3c29e9'
            'SKIP'
            '7e04976a8ae0969095333b35fcf904fa1bd489ae808b53c53b37f4067e941451'
            'SKIP'
            'c3a70b41cb2bc0694558b311dbe712d5d7b8c8825f1e3d77b920bc4450c15746'
            'SKIP'
            '9934d1327bed33e63a6d749fb1d22c92973eff23561515e90f5fd00be02d8040'
            'SKIP'
            '79d3ac221a8aa955e60f02ad1d939942268e9ad850963799ce2b31db81723305'
            'SKIP'
            '5d511dd1f2b62483e2a3297ace8fd34e868af0661290f5a5c6c4c655be595396'
            'SKIP'
            '49f707c75966fd380acf8607107845babeb7ec417e027173a6f6d39929c980ee'
            'SKIP'
            '64dad3e9bf696e3dab161750ba04c53a338b84e7fdca3452d03b4d93679ae579'
            'SKIP'
            '869d40bd0c7aeccb89c1062b6827605c04822ffc96527a40c678c80c37b47e42'
            'SKIP'
            'f056d0cfb305cb899365405d8d26f5cd73ceacaed7d5a12dda50be2f15c3d684'
            'SKIP'
            '38870f2b68b0a5cc95d45b0abd0a95533bd12d9db9b1d0c193d5e969bbaf1ca3'
            'SKIP'
            '4c17519a41651894e6a90bb590e3b173000f8988661eeddc6b9a931e24f5d2fa'
            'SKIP'
            '516d014511e0c361c56b0096d7a33d2edfecdbce7509e257ed5ed33a781671be'
            'SKIP'
            '0f4dc9fa879f8af94d8ddd7baa4bb5510800c698ced844b8e380eec11e8ac665'
            'SKIP'
            '6c132a98e3a61cc4004fd6c0e4ef82e8aab29fcb5d9a7c1206d3fa27ec323bb8'
            'SKIP'
            '6c304446d38c0a066a2a8d0fb7e2d67643480a90a70ddef2109ce793230866f3'
            'SKIP'
            '28cce06cbd3d64daec6315e221e498cf13a347718d8cf32f27a8042a28baf4fd'
            'SKIP'
            '6e3fb300287f7d7c20bcd132117524c70cc38d46c3c112f40098c32d94801e48'
            'SKIP'
            'ac57ce16e70fe626474e509f38e053575be77a34b1133951ccfc2462da6daa14'
            'SKIP'
            '17dbf7420f8ec3af39ef7f58dc0231ddd47e8394170bae5b3283e2b3724a5766'
            'SKIP'
            '416644510fb5964806b445a1ef029fb665590284afa91a1d4d9967428272fa9b'
            'SKIP'
            'ba7d5457fc155143dc5521d6619867b026d3cd296f331459c9083374f9984915'
            'SKIP'
            'c4b182d4564da06b0c5fe6d51e0f8561d632e8e406d4b38e74616666ca0f1981'
            'SKIP'
            '000b21be707e6114279857ca2ceaaf89a8f3c4c043662b5eef68d3ad54b7f880'
            'SKIP'
            'da4ba11658bb8de4e8a045ff824a3bc760389cc35dac9b6ec554b26cc43a1c6f'
            'SKIP'
            '6bf734f5b4fb0007978a82d71ce74be729ed7338eb3485ca12e8ad1d527d967f'
            'SKIP'
            'dfde4d44552722a3aa4e8f49dfe97f8e458c994a1b7fd8750c362c1e3bbadcec'
            'SKIP'
            'c068ccf61e55e9271aab45902fdafafe562a4091c341f2df6cbd2c8426cec306'
            'SKIP'
            'ccddf2f2dc7ead2df71eab701b89277bfe5b0f18cff799814d98950c66083b48'
            'SKIP'
            '964ad8d7471268b90b51c4997a5f137ba4d18c0136cc9477c1caa30eb624476e'
            'SKIP'
            'd53ae13ef1eb26ed8ff991b46a9b392b39e7169270b9178238dde3d0ca105e33'
            'SKIP'
            '1fb75d07df4ccfec6e112e9a602094b8772e59ad5944981d169c9d38a111a3f0'
            'SKIP'
            '07f197d4fe2218bf25b39d00b793c16ad9364d6abd5e90a8f755f91a120d4e97'
            'SKIP'
            'ae0f9536f8233176ca08af33c6c31e386bed240a988250cd6ea893ee99ced3ac'
            'SKIP'
            '475f64bf439fa32626db56507656a3b2e1bcdaa3f76a93b16a2a8cc5e7e2166f'
            'SKIP'
            'd3c2a68e010db0ff4f5fd69ead6a1162a0eee5475056eb35a3b76fe451bed555'
            'SKIP'
            '3f16002d01ca969710187548df5cce82d1fac3fb4a78882f017e51fbd7e56024'
            'SKIP'
            '17ddbb1762b25bce92227a1d149c22a08bffcef99ff420b52d54fea18fd9dd08'
            'SKIP'
            'c24ab5423f4da51f0b3fe29aeef7c59cf3266db5fb9af71d48aa00222b05973e'
            'SKIP'
            '4a0d5d0918c7c4b9c12d42ad44e0a054d2c1e87cd076967ef1d563bd83e72489'
            'SKIP'
            '22f9f6463b8f6e0c3ba7a0199dfe339208fffa54e87f0d2ff82606584e06a8c0'
            'SKIP'
            '4e8e0b6545bc533170897a83d9d23395a077a55fa7421a6498b955fbdea9ed58'
            'SKIP'
            '8e662ccef9004ba5947469f5b13cff566d76de31b23a4325a218a3c0c50e9cae'
            'SKIP'
            '793126af1f3820be6f32c0f0204a4f4f785945fb8aed0da39267f6060486ea9c'
            'SKIP'
            '0308a563a6d36cf3920386d5d2b58c3d46979d5892ca29b6b4ef80697e0f5cdb'
            'SKIP'
            '04c48bc7e01500a979177c9857e8a393166292e7fa18aec152b65a085adf0f51'
            'SKIP'
            'ace4e659f04918b1ff0e092ef5194ed9ab1fd98b2befbc7c772f1d3012791fad'
            'SKIP'
            '391c48a1788a34e56b50dd21b694287d53d81ffe68dd7f3d4b5c9b02076bd72d'
            'SKIP'
            '75e07b388983fd62085e4cc67df048f0c79669ba024c16299b4d67747e6c3564'
            'SKIP'
            '3590fdf5f4ba7e1131aeeb0adf53f07cd287a9bd776c92774c7bb4f033070f42'
            'SKIP'
            '2b86b50bcc1b6f9b5ce9c6d39baeb2f276661f30882b55da3dccacdd87b63bf4'
            'SKIP'
            '336a71efac77704defd8aacc482c9683d6c3ca413d941c1c8b6290db2ce4abee'
            'SKIP'
            '0346906963d3fe18a90196918bdeb969f0da8e1a58cffb5ffd5f497c1648a249'
            'SKIP'
            '2845631b32e815ad3975d7e30338f66b44126d420ed440fa865a24740d940672'
            'SKIP'
            '2d4532904b5db49e835ba2c2ba88118412a60173c339aef5e8af7bbf6d5c3b11'
            'SKIP'
            'fe0f8815e20e3efb069a7199e35bba5c0a21903dcf054cba9739264a9ccf9aca'
            'SKIP'
            'f9d4996072614d08178ced181e40953eda98bce6c3031391537a35ced3124367'
            'SKIP'
            'c363c9be4c38efce80bd603b512c19de57ad4e6f62abac9319633f93f0dccc0e'
            'SKIP'
            '57a93ff85b66eab6b4f661e9cdadf4533cfe8a5b1f12bd55cb2661b484149ee1'
            'SKIP'
            'd493a5122ef356575bca99545ee213b4a851ab1f3e8f0db457e1632fcfe5a7f7'
            'SKIP'
            'd778ca1273b1bdd1d928b55c2b0914bc53b311653b8d608920a2529e20e4d881'
            'SKIP'
            '628984de4234d47f8e06300c183b65ea7438ad8470a08636915f2f4fc594cd84'
            'SKIP'
            'f5cbf74422cee190c299aeef162bb77d1e1013ce435d01b54f40d635170e984e'
            'SKIP'
            '208b63cd6546285a6317e277d6352bf1f3a6286b7ad8c727f46949c504bb9bb3'
            'SKIP'
            '20b6b7bf58f279062805e806e34c6346a5e6c2e4d66b79af48a82bea29bd8276'
            'SKIP'
            '69a73d6c69150440c199211bc8c0486326612b20f37cbf431dd6d7010fb45e5d'
            'SKIP'
            '1a9c49e0f261b7f22cf7a17d7d373340494860d11e24e9aa2423a2acd735a498'
            'SKIP'
            '6f4ec77901656c79f7131a17942823e5ae5c5f62c215f9b418e404e120465d49'
            'SKIP'
            '30adc16c344a5b9ffe4c1df2b132e7e698a0ce9b68eee5108706a56957ceb5b6'
            'SKIP'
            'e05c56015d291c5ba078fc83f09c2b76b3fcc91d772da827e03becdcce243117'
            'SKIP'
            '06d3463932dfef8de3d7eb69e9ee4e2dbd81b7c90db9844eed369fa13162edae'
            'SKIP'
            '49fc3ec4630e3cfde8297ce91ca7f93a42abed6033b203a0146f9326ee95500a'
            'SKIP'
            '1ea4dedd0fc1eefcc7421b97293592fda91b83af27b3eec08e9addca786476bd'
            'SKIP'
            '27877d5bf7608e8edd4a3b8ee4a996e41a32e4be493d18c62e7350bffaee2aa0'
            'SKIP'
            'b32609a773ef23186cb8a265fd45d861485882dcce5180eabe9e116f6639b0e4'
            'SKIP'
            '6c3d281c69e381c37645312db04941b26e39068fd08129e2a2dcf92e33f40d19'
            'SKIP'
            'ececc74a3038b35c31b70b5be2806c694b975e112469ebcd69d19aeece0304c8'
            'SKIP'
            '3451bcf89b64a853d0b3ceb4856decf28afff7795fee58f4ce44961e2abcdec9'
            'SKIP'
            '60778581fbc8672b89d572d5462e0967395b695f3409995f63d2a901e57281f0'
            'SKIP'
            '184148f347e9085da8271dbe9fa1ac141d4a59d8516b72fd789c5553972eb50b'
            'SKIP'
            '2cae078affa88b239613a92cf3c59f80f8fd9b7fdc011e504cdb2a6dceb551d1'
            'SKIP'
            'bb12bd3abe72bdb26863269463a6336a54b279be1590e44db84a549a9987c258'
            'SKIP'
            '76c00b67c9e416a7421b79396f9feef55900c9cbe7c1d9af42957bb1ea5f46fd'
            'SKIP'
            '77bab719a3fb399ba750662d3e9efd9e2f54dff140ac0375b99ea59d656a4422'
            'SKIP'
            'b6b0f45f2d316eb3033cfe54b0699606fdb341b9f4214cad3574e8f7b445b509'
            'SKIP'
            '2a47c5efaa87c3e46ada5fa53574ff6d737dfe7a54404d4f9fe0acbdfae2420b'
            'SKIP'
            'c13157bdadbd3ac37a4553c3dc98fb20dd253ad87cf62f0340e0a2a973d9d8f8'
            'SKIP'
            '251bd8446460e4b30436464bc7bd7ba068494d36b20bbaddcd34682afcadeae5'
            'SKIP'
            '2e5e7db413e13f11e54fc2c5adbfaff77e51ce31c1da057544db5f0aada8a58d'
            'SKIP'
            '73817df5de05f3ae61c60582e10f6a3358145ad7ae1536f08070ebd73a54b5df'
            'SKIP'
            '958703d57203860064e003eb59812806d9b8cd68183438aedd3cbd6bb9fa4c64'
            'SKIP'
            'ded71860311ec00c64b3a2429c537e5c40ccd8d28767beece492f181240d106b'
            'SKIP'
            'aab7b669106dbfe9592af4b037e57b796c68f8d455faa3b06835077afee0e87d'
            'SKIP'
            'f1d40e2685b5a6646a7584565d857d96d5e809c6b26a9a9bedd92c225400e883'
            'SKIP'
            '7627e5479d59efbb42a01aafa6d024bae583d04ab3f5781e9469ed445c702cd2'
            'SKIP'
            '363e93a70b4fc66f874c91bc086cb431946169d5e3061555efbae8f2be5ad2a6'
            'SKIP'
            '2df1a955dd40ea27cb3958642c33c0f2dbd766c512d23d6de4d125e864782205'
            'SKIP'
            '6ece56e570e5589d8664eca0934e9111f389b69a28d33c0d8cdb745892055db5'
            'SKIP'
            'af7b3c4d62c2150f256894aeace89a6f2b6d49e879b4d63be54e1aaf94bdb3d3'
            'SKIP'
            '14df89f2b9bf74f34bf70e2925771235de7fe93b45e438cd8df61d0641420d6d'
            'SKIP'
            '091c3fb25787f3792e395f1f7ab3fe594cf05ce7efff77a8cc8ed912f8dcab44'
            'SKIP'
            '9de2023361d6ff2ed6ecfd5e4dcc2cd950dc2fac163b81aff65b831cafb1ae5e'
            'SKIP'
            '6b4962cf47cf8a0bf2cdc69a9381a5c3b1887f45df1e41ac53c2b9c54560dc4a'
            'SKIP'
            'b99ba4621b6016466a0414e8ce15fc20893735c32e4521fe2514d6618b816005'
            'SKIP'
            'f14885f179134e40634d44b7ef2dcbac74a3277f261514142adb70400dc9500d'
            'SKIP'
            '627abf3aca6bd2abb53ff587b8382c5efacc2832241bcb4455b3c055bdad0dc7'
            'SKIP'
            'acb250f8fa347411f0c2d8f16b1e41dc41169931745c120fe5c1a0d03fff57eb'
            'SKIP'
            'd9f6b43749de9d875d7040fb9fb03613892d59de9da4b3d2a2318f1070365859'
            'SKIP'
            'cd92f4127409e48b460085ed79df01425def35da5a4b3f215c153b9fd24f96db'
            'SKIP'
            '5342f766adf9117bb945fa239c7d7c72bd72f0ffde95b7a4a2c64e4e6506fa9a'
            'SKIP'
            'fec1f3676486d04d06b7ae5736e15b093f5311f84f33887887ef19c09238ecd5'
            'SKIP'
            'ab7215ea248ab1ba508a344b1b6f90267858a55377791c0078391eecd2385f48'
            'SKIP'
            '8b50309c459b6c747e81891a67674006f66ad5f074a70ba4cd2ba27a4cb92944'
            'SKIP'
            '846a2b58d530371bca0149c92123a8e67b70d2225668254d67c7833640f58f87'
            'SKIP'
            '530cc76a7067d80e6c0f42df680535975a93802086e895495e39e816f8803ca8'
            'SKIP'
            'c349413eff73f345f58dcf2d8bf281e88def0e9625f650fa28c8629527d948b0'
            'SKIP'
            'ca78eeb3cfd2f2ef2ae7ba2c36c44510ed8860cf93d6e3281883b9066f12740a'
            'SKIP'
            '3f0f2c88b1d1a0b6e5dc9f46391fb040823cb101beed0e4078e3a51bfb426127'
            'SKIP'
            '209b17a4f1c6de4ccfc183dfe1d4711388806d712810ea2c40f649d9d78f4d0e'
            'SKIP'
            '72e943d1d524bd9d175a814b9c88f4a3b5336c01733e17fea4b68302ee119119'
            'SKIP'
            'faf2783bd4ac02544dcbd1a768b404d4515a1e7e0c8793bfe7a510b0b54c035d'
            'SKIP'
            'c357aef211379636f0e717104abffb4846ffc56871878d77c2a9969c0ace719f'
            'SKIP'
            '50a20ad23307fa968a164a3f1be02adcedd471605966d4399156d84e2f519f0d'
            'SKIP'
            '194c04ef7a1805a981043e2928985f1d76b2853accfddc35b32b45a255ec3721'
            'SKIP'
            '70200844679774ee7831f6c7d90296c2aed3affa28f0e3f1178078fa4d74d8ab'
            'SKIP'
            'ac2b25a91dd480ab5ab145514653fd361bf631d1be3541af7cbfea1310f51787'
            'SKIP'
            '7b1b52f5a5c1514802f2e1a200574644c44b251f607b10f34d8441e20d080a57'
            'SKIP'
            'a943a7aad49744c0feec8f6080bfb3f59956c5d24372cf5921ead483485344c9'
            'SKIP'
            '2dcb4ead7a21818499b355692fe125f25722ae2a59d3a4cda0e7e211d776b18d'
            'SKIP'
            '989fb8920d76a32cf0d6bad9d2a4dfccce54c184403f12be588fc21c3452dfbc'
            'SKIP'
            'c61ef80bd7e2feac3f0d7f2110ab71a19a131b39f2ee733c0d819ce09cdb052a'
            'SKIP'
            '6df674d4529ef285f9593221161f68abcd2c8f57998bdb92137a3ed6907e1bd7'
            'SKIP'
            '5146f6b07dc12e5414071b1693886e6464c72b3c32422f91778578661f8b2950'
            'SKIP')

prepare() {
  for _lang in "${_languages[@]}"; do
    declare -a "_langa=($_lang)"
    _locale="${_langa[0]}"
    _helppack="${_langa[2]}"

    echo ${_locale} " unpacking..."
    cd "${srcdir}"/LibreOffice_${_rcver}_Linux_x86-64_rpm_langpack_${_locale}/RPMS

    # remove dictionaries if shipped - we ship them now in separate packages
    rm -vf *-dict-*.rpm || /bin/true

    for j in *.rpm
      do bsdtar -x -f $j
    done

    # the helppack rpm goes also into the langpack dir
    if (( $_helppack )); then
      bsdtar -x -f "${srcdir}"/LibreOffice_${_rcver}_Linux_x86-64_rpm_helppack_${_locale}/RPMS/*.rpm
    fi
  done
}

_package() {
  pkgdesc="$2 language pack for LibreOffice still"
  depends=('libreoffice-still')
  provides=("libreoffice-$1")
  conflicts=("libreoffice-$1")
  if [[ $1 != ${1,,} ]]; then
    replaces=(libreoffice-still-$1)
  fi

  cd "$srcdir"/LibreOffice_${_rcver}_Linux_x86-64_rpm_langpack_$1/RPMS
  mkdir -p "$pkgdir"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "$pkgdir"/usr/lib/libreoffice
  chown root:root -R "$pkgdir"/usr/lib/libreoffice
}

for _lang in "${_languages[@]}"; do
  declare -a "_langa=($_lang)"
  _locale="${_langa[0]}"
  _helppack="${_langa[2]}"
  _pkgname=libreoffice-still-${_locale,,}

  pkgname+=($_pkgname)
  source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86-64_rpm_langpack_${_locale}.tar.gz{,.asc})

  if (( $_helppack )); then
    source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86-64_rpm_helppack_${_locale}.tar.gz{,.asc})
  fi

  eval "package_${_pkgname}() {
    _package $_lang
  }"
done
